<div class="row">
    <div class="col-sm-12">

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{$title|default="主页面"}</h3>
            </div>
            <div class="panel-body">
                <form method="post" action="__URL__/add?id={$id}" role="form" id="CourseEdit" class="validate">
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="CourseName" class="control-label">课程名称：</label>
                                <input type="text" id="CourseName" name="CourseName" class="form-control"
                                       data-validate="required" placeholder="请输入课程名称" data-message-required="请输入课程名称"
                                       value="{$data.coursename}">
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="CourseCode" class="control-label">课程代码：</label>
                                    <input type="text" id="CourseCode" name="CourseCode" class="form-control"
                                           data-validate="required" placeholder="请输入课程代码"
                                           data-message-required="请输入课程代码"
                                           value="{$data.coursecode}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="CourseHours" class="control-label">课程学时：</label>
                                <div class="row">
                                    <div class="col-md-2">
                                        <input id="CourseHours" name="CourseHours" class="form-control" size="10"
                                               type="text" data-validate="number"
                                               value="{$data.courseHours|default=0}"/>
                                    </div>
                                    <div class="col-md-6 text-left">分钟</div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="CourseFee" class="control-label">课程学费：</label>
                                    <div class="row">
                                        <div class="col-md-4">
                                            <input id="CourseFee" name="CourseFee" class="form-control"
                                                   type="text" data-validate="required"
                                                   placeholder="请输入课程学费" data-message-required="请输入课程学费"
                                                   value="{$data.coursefee}"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="CourseHours" class="control-label">课程学时：</label>
                                <label for="IsOpenSelection" class="control-label">是否开放选课：</label>
                                <p>
                                    <label class="radio-inline">
                                        <input type="radio" id="IsOpenSelection-1" name="IsOpenSelection" value="1"
                                        <if condition="$data.isopenselection eq 1">checked</if>
                                        >
                                        开放
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" id="IsOpenSelection-2" name="IsOpenSelection" value="0"
                                        <if condition="$data.isopenselection eq 0">checked</if>
                                        >
                                        不开放
                                    </label>
                                </p>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="IsScormCourse" class="control-label">是否是SCORM课程：</label>
                                    <p>
                                        <label class="radio-inline">
                                            <input type="radio" id="IsScormCourse-1" name="IsScormCourse" value="1"
                                            <if condition="$data.isopenselection eq 1">checked</if>
                                            >
                                            是
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" id="IsScormCourse-2" name="IsScormCourse" value="0"
                                            <if condition="$data.isopenselection eq 0">checked</if>
                                            >
                                            不是
                                        </label>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row col-margin">
                            <div class="col-md-12">
                                <label for="CourseURL" class="control-label">课程地址：</label>
                                <input type="text" id="CourseURL" name="CourseURL" class="form-control"
                                       data-validate="url" placeholder="请输入课程地址" data-message-required="请输入课程地址"
                                       value="{$data.courseurl}">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row col-margin">
                            <div class="col-md-12">
                                <label for="DemoCourseURL" class="control-label">试听地址：</label>
                                <input type="text" id="DemoCourseURL" name="DemoCourseURL" class="form-control"
                                       data-validate="url" placeholder="请输入试听地址" data-message-required="请输入试听地址"
                                       value="{$data.democourseurl}">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row col-margin">
                            <div class="col-md-12">
                                <label for="CourseDescription" class="control-label">课程简介：</label>
                                <textarea id="CourseDescription" name="CourseDescription" class="form-control" row="5">{$data.coursedescription}</textarea>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-5 col-sm-7">
                            <input type="hidden" id="ID" name="ID" value="{$id}">
                            <input type="submit" id="btnSave" value="  保 存  " class="btn btn-primary" onclick="Save()"/>
                            <input type="button" value="  返 回  " class="btn btn-info" onclick="history.go(-1)"/>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

<script>
    $(function () {

    });
</script>
